<template>
  <div id="app">
    <nav class="navbar">
      <div class="container">
        <h1 class="logo">问卷调查系统</h1>
        <div class="nav-links">
          <router-link to="/list" class="nav-link">问卷列表</router-link>
          <router-link to="/create" class="nav-link">创建问卷</router-link>
        </div>
      </div>
    </nav>
    
    <div class="container">
      <router-view></router-view>
    </div>
    
    <footer class="footer">
      <div class="container">
        <p>&copy; 2023 问卷调查系统</p>
      </div>
    </footer>
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style>
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.navbar {
  background-color: #4CAF50;
  color: white;
  padding: 15px 0;
  margin-bottom: 30px;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  margin: 0;
}

.nav-links {
  display: flex;
}

.nav-link {
  color: white;
  text-decoration: none;
  margin-left: 20px;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.router-link-active {
  background-color: rgba(255, 255, 255, 0.2);
}

.footer {
  background-color: #333;
  color: white;
  padding: 20px 0;
  text-align: center;
  margin-top: 50px;
}

h1 {
  margin-bottom: 20px;
}
</style>